<script type="text/html" id="option">
    <a href="/auditPRDetail/{{d.purchApplyId}}" class="layui-table-link">审核</a>
</script>
<script>
    layui.use(['layer', 'form', 'element', 'jquery','table'], function () {
        let layer = layui.layer, form = layui.form, $ = layui.$, table = layui.table;

        table.render({
            elem: '#auditPR'
            ,url:'/auditPRList',
            method: 'post',
            contentType: 'application/json'
            ,cols: [[
                {field:'purchApplyId',title: '序号' }
                ,{field:'billNumber',  title: '单据编号'}
                ,{field:'createDate',  title: '创建日期'}
                ,{field:'coalType',  title: '煤种'}
                ,{field:'purchaseNum', title: '数量（万吨）'}
                ,{field:'jiesuanMode', title: '结算方式'}
                ,{field:'createUserOrg', title: '发起人'}
                ,{field:'status', title: '状态'}
                ,{field:'', title: '操作',templet: '#option', unresize: true}
            ]]
            ,page: true
            ,parseData: function(res){
                return {
                    "code": res.code,
                    "msg": res.msg,
                    "count": res.data.total,
                    "data": res.data.rows
                };
            }
        })



    });
</script>